/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Game;
import graphics.*;
import util.GameCore;

import java.awt.*;
import javax.swing.JFrame;
/**
 *  NOT FINISHED
 *
 *  Since BufferedImage is not serializable need to find where its used and make it Image
 *  Think about making a special Map class just for serializing
 * @author Yati
 */
public class MapCompilerMain {
    private static final DisplayMode POSSIBLE_MODES[] = {
        new DisplayMode(800, 600, 16, 0),
        new DisplayMode(800, 600, 32, 0),
        new DisplayMode(800, 600, 24, 0),
        new DisplayMode(640, 480, 16, 0),
        new DisplayMode(640, 480, 32, 0),
        new DisplayMode(640, 480, 24, 0),
        new DisplayMode(1024, 768, 16, 0),
        new DisplayMode(1024, 768, 32, 0),
        new DisplayMode(1024, 768, 24, 0),
    };

    public static void main(String args[]){
        ScreenManager tempScreen=new ScreenManager();
        DisplayMode displayMode =
            tempScreen.findFirstCompatibleMode(POSSIBLE_MODES);
        tempScreen.setFullScreen(displayMode);

        if(tempScreen==null){
            System.err.println("NULL");
        }
        JFrame gc=tempScreen.getFullScreenWindow();
        if(gc==null){
            System.err.println("NULL"); 
        }
        MapCompiler com=new MapCompiler(tempScreen.getFullScreenWindow().getGraphicsConfiguration());
        tempScreen.restoreScreen();
        com.compileAllMaps("maps");



        System.exit(0);


    }

}
